<?php
    if(empty($_SESSION))
        session_start ();
    if(isset($_SESSION['per']))
    {
        if($_SESSION['per']==3)
        {
            print'<script type="text/javascript">';
            print'location.href = "'.HOST.'view/view_per.php";';
            print'</script>';
        }
    }
    else
    {
        print'<script type="text/javascript">';
        print'location.href = "'.HOST.'view/view_per.php";';
        print'</script>';
    }
?>
<section id="secondary_bar">
		<div class="user">
			<p><?php echo $_SESSION['name'] ?></p>
			<!-- <a class="logout_user" href="#" title="Logout">Logout</a> -->
		</div>
		<div class="breadcrumbs_container">
                    <article class="breadcrumbs"><a href="<?php echo HOST ?>index.php">Shop</a> <div class="breadcrumb_divider"></div> <a class="current">Quản lý</a></article>
		</div>
	</section><!-- end of secondary bar -->
	
<aside id="sidebar" class="column">
		<form class="quick_search">
			<input type="text" value="Quick Search" onfocus="if(!this._haschanged){this.value=''};this._haschanged=true;">
		</form>
		<hr/>
		<h3>Sản Phẩm</h3>
		<ul class="toggle">
			<li class="icn_new_article"><a href="<?php echo HOST ?>view/view_addproducts.php">Thêm</a></li>
			<li class="icn_edit_article"><a href="<?php echo HOST ?>view/view_adminproduct.php">Danh Sách</a></li>
                        <li class="icn_video"><a href="<?php echo HOST ?>view/view_adminoutofstock.php">Hết Hàng</a></li>
		</ul>
		<h3>Khách Hàng</h3>
		<ul class="toggle">
			<li class="icn_view_users"><a href="<?php echo HOST ?>view/view_listaccount.php">Danh Sách</a></li>
		</ul>
		<h3>Đơn Hàng</h3>
		<ul class="toggle">
                    <li class="icn_folder"><a href="<?php echo HOST ?>view/view_admin.php">Xác Nhận</a></li>
			<li class="icn_photo"><a href="<?php echo HOST ?>view/view_billAll.php">Danh Sách</a></li>
		</ul>
		<h3>Options</h3>
		<ul class="toggle">
			<li class="icn_jump_back"><a href="#">Logout</a></li>
		</ul>
		
		<footer>
			<hr />
			<p><strong>Quản lý</strong></p>
		</footer>
</aside><!-- end of sidebar -->